jQuery(function($){
	var mySwiper = new Swiper ('.main ._lunbo .swiper-container', {
	    direction: 'horizontal',
	    autoplay:1000,
	    loop: true,
	    
	    
	    // 如果需要分页器
	    pagination: '.swiper-pagination',
	    
	})        
    
    
    
        $.ajax({
      url: '../json/classify.json',
      type: 'get',
      dataType: 'json'
    })
    .done(function(data) {
      console.log("success");
      console.log(data);
      var str = template("template-item", {list: data.Data.Data})
      $(".main .classify ._top").html(str);
      var newslist = new Swiper('.news-list', {
      });
    })
    .fail(function() {
      console.log("error");
    })
    .always(function() {
      console.log("complete");
    });
    
    
    
    $(".footer ._shouye").on("click",function(){
    	location.href="../index.html"
    	
    })
    $(".footer ._faxian").on("click",function(){
    	location.href="find.html"
    	
    })
    $(".footer ._wode").on("click",function(){
    	location.href="mine.html"
    	
    })
    
    
});
